package cn.shop.cloud.service;


import cn.shop.cloud.domain.User;
import cn.shop.cloud.web.vo.LoginVo;

/**
 * @program: xiangmu
 * @ClassName UserService
 * @description:
 * @author: 李尧坤
 * @create: 2024−12-14 09:34
 * @Version 1.0
 **/

public interface UserService {
    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    public User find(Long id);

    /**
     * 登录
     * @param loginVo
     * @return
     */
    public String login(LoginVo loginVo);

    /**
     * 获取登录信息
     * @param token
     * @return
     */
    public User getUserByToken(String token);
}
